// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'


export function selectAll(){
  return request({
    url: '/inspiration/selectAll',
    method: 'get',

  })
}

export function selectAllTwo(){
  return request({
    url: '/inspiration/selectAllTwo',
    method: 'get',

  })
}

export function upload(file){
  return request({
    url: '/inspiration/upload',
    method: 'post',
    data:file,
    headers: {
      'Content-Type': 'multipart/form-data' }


  })
}


export function add(inspiration){
  return request({
    url: '/inspiration/add',
    method: 'post',
    data:inspiration


  })
}

export function queryOneById(ids){
  return request({
    url: '/inspiration/queryOneById',
    method: 'get',
    params: {id:ids}


  })
}




